<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>自主招生报名</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>
    <link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet"/>
    <link href="${s.base}/mobile/css/jquery-weui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="${s.base}/mobile/css/enrollment/zzzs.css"/>
</head>
<body style="background:#f1f1f1;">
<div class="main-content75" >
    <div class="data-entry-ctn">
        <div class="data-entry-title data-entry-title-bg">学校信息</div>
        <div class="div-input-line2">
            <label><span class="red">*</span>毕业学校</label>
            <input id="input-school" type="text" value="${infoSchoolName}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span>&nbsp;</span>学校所在区（县）</h1>
            <input id="input-school-address" type="text" value="${infoSchoolAddress}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span class="red">*</span>户口所在地</h1>
            <input id="input-address" type="text" value="${infoAddress}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span class="red">*</span>考试中考报名号（准考证号）</h1>
            <input id="input-test-num" type="number" value="${infoTestNum}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span>&nbsp;</span>邮政编码</h1>
            <input id="input-postal-code" type="number" value="${infoPostalCode}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span class="red">*</span>所在年级总人数</h1>
            <input id="input-grade-num" type="number" value="${infoGradePersonNum}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span class="red">*</span>所在班级总人数</h1>
            <input id="input-class-num" type="number" value="${infoClassPersonNum}" placeholder="请输入" />
        </div>
        <div class="div-input-line2">
            <h1><span class="red">*</span>详细通讯地址及联系人</h1>
            <textarea id="input-phone" rows="3" placeholder="请输入">${infoAddressAndPhone}</textarea>
        </div>
    </div>
    <div class="zzzs-btn-ctn mart40">
        <button type="button" onclick="prePage()">上一步</button>
        <button type="button" onclick="nextPage()">下一步</button>
    </div>
</div>
</body>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
<script type="text/javascript">
    function nextPage() {
        var schoolName = $("#input-school").val();
        if(schoolName == null || schoolName == ""){
            $.toast("毕业学校不能为空", "text");
            return;
        }

        var schoolAddress = $("#input-school-address").val();

        var address = $("#input-address").val();
        if(address == null || address == ""){
            $.toast("户口所在地不能为空", "text");
            return;
        }

        var testNum = $("#input-test-num").val();
        if(testNum == null || testNum == ""){
            $.toast("考试中考报名号（准考证号）不能为空", "text");
            return;
        }

        var postalCode = $("#input-postal-code").val();

        var gradePersonNum = $("#input-grade-num").val();
        if(gradePersonNum == null || gradePersonNum == ""){
            $.toast("所在年级总人数不能为空", "text");
            return;
        }

        var classPersonNum = $("#input-class-num").val();
        if(classPersonNum == null || classPersonNum == ""){
            $.toast("所在班级总人数不能为空", "text");
            return;
        }

        var addressAndPhone = $("#input-phone").val();
        if(addressAndPhone == null || addressAndPhone == ""){
            $.toast("详细通讯地址及联系人不能为空", "text");
            return;
        }

        window.location.href = '/phone/enrollment/infoFamily?schoolName='+schoolName +
            '&schoolAddress='+schoolAddress +'&address='+address +'&testNum='+testNum +
            '&postalCode='+postalCode +'&gradePersonNum='+gradePersonNum +
            '&classPersonNum='+classPersonNum + '&addressAndPhone='+addressAndPhone +
            '&releaseId=${releaseId}&token=${token}&applyId=${applyId}';
    }

    function prePage() {
        window.location.href = '/phone/enrollment/infoBase?releaseId=${releaseId}&token=${token}&applyId=${applyId}';
    }
</script>
</html>
